package com.wjw.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjw.entity.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
*@author WuJianWei
*@date 2022/2/28 20:00
*/
@Mapper
public interface UsersMapper extends BaseMapper<Users> {
    @Insert("insert into users(userName,password,salt,register_time,login_count) values(#{userName},#{password},#{salt},now(),1)")
    void registerUser(String userName,String password,String salt);
}